Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 3 - Window Manager Reference / Window Manager Functions
Collapsing Windows /


IsWindowCollapsed

NEW WITH THE APPEARANCE MANAGER

Determines a window's collapse state.

pascal Boolean IsWindowCollapsed (WindowPtr inWindow);
inWindow
On input, a pointer to the window whose collapse state you are determining.
function result
A Boolean value. If true, the window is collapsed. If false, the window is expanded.
DISCUSSION
Only window definition functions that return the feature bit kWindowCanCollapse in response to a kWindowGetFeatures message support this function; see GetWindowFeatures. Your window definition function should call IsWindowCollapsed to determine whether or not a window is collapsed, so you can modify its structure and content regions as appropriate. Typically, a window's content region is empty in a collapsed state.

SEE ALSO
"Appearance Manager Gestalt Selector Constants".


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998